package com.example.demo.services;

import com.example.demo.entity.DictItem;
import com.example.demo.entity.ProductSupplier;
import com.example.demo.mapper.DictItemMapper;
import com.example.demo.model.DictItemModel;
import com.example.demo.model.SupplierModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServices {
    @Autowired
    SupplierModel SupplierModel;
    public ProductSupplier getSupplier(int id) {
        ProductSupplier ProductSupplier =  SupplierModel.detail(id);
        return ProductSupplier;
    }
    @Autowired
    DictItemMapper DictItemMapper;
    public List<DictItem> getDictItemByIds(String insure_kind_list) {
        List<DictItem> DictItems = DictItemMapper.getDictItemByIds(insure_kind_list);
        return DictItems;
    }
}
